package com.igeek.javase.relation.shopping;

/**
 * @author chenmin
 * 2023/7/13 23:30
 * @description TODO
 */
public class Test {

    public static void main(String[] args) {
        Goods g1 = new Goods("铅笔", 10, "黑色", 1);
        Goods g2 = new Goods("钢笔", 20, "白色", 1);
        Goods[] goods1 = {g1, g2};
        User user = new User("小明","12344556368","北京");
        Order orders = new Order("001",user,goods1);


        //Order orders2 = new Order("2","小红","胶带");

        g1.setOrder(orders);
//        orders1.showGoods();
//        orders2.showGoods();

        user.xiaDan();
        orders.showOrderDetail();
    }
}
